package com.baoleme.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class RegisterDTO {
    @NotEmpty(message = "名字不能为空")
    private String name;
    @Length(min = 6,max = 16,message = "密码长度在6-16位之间")
    private String password;
    @Length(min = 11,max = 11,message = "电话号码长度为11位")
    private String phone;
    private String gender;
    @Length(min = 18,max = 18,message = "身份证长度为18位")
    private String idCard;
    private String avatar;
}
